package com.example.template.entity;

import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @className: UserRole
 * @description: TODO 类描述 
 * @author: Kuangkeli
 * @date: 2024/01/28 17:00
 **/

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "user_role")
public class UserRole implements Serializable {
    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 角色列表
     */
    private List<Role> roles;

    private static final long serialVersionUID = 1L;
}